﻿/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;

namespace IvyOrm
{
    /// <summary>
    /// Represents errors that occur during IvyOrm execution.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Orm")]
    [Serializable]
    public class IvyOrmException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        [DebuggerHidden]
        public IvyOrmException()
            : base()
        { }

        /// <summary>
        /// Initializes a new instance of the class with serialized data.
        /// </summary>
        /// <param name="message"></param>
        [DebuggerHidden]
        public IvyOrmException(string message)
            : base(message)
        { }

        /// <summary>
        /// Initializes a new instance of the class with a specified
        /// error message and a reference to the inner exception that is the cause of
        /// this exception.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        [DebuggerHidden]
        public IvyOrmException(string message, Exception innerException)
            : base(message, innerException)
        { }

        /// <summary>
        /// Initializes a new instance of the class with serialized
        /// data.
        /// </summary>
        [DebuggerHidden]
        protected IvyOrmException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        { }
    }
}
